/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.domain;

import java.util.ArrayList;

/**
 *
 * @author fmat
 */
public class BeberagesList {
    private ArrayList<Beberage> beberagesList;
    
    public BeberagesList(ArrayList<Beberage> beberagesList){
        this.beberagesList = beberagesList;
    }
    
    public BeberagesList(){
        this.beberagesList = new ArrayList<>();
    }
    
    public void addBeberage(Beberage addingBeberage){
        beberagesList.add(addingBeberage);
    }
    
    public Beberage getBeberage(int beberageIndex){
        return beberagesList.get(beberageIndex);
    }
    
    public Beberage removeBeberage(int beberageIndex){
        Beberage removingBeberage = beberagesList.remove(beberageIndex);
        return removingBeberage;
    }
    
    public int getTotalBeberages(){
        return beberagesList.size();
    }
}
